package cn.pengyinrui.pethome.utils;

import cn.pengyinrui.pethome.emp.domain.Employee;
import cn.pengyinrui.pethome.emp.domain.EmployeeBo;
import org.springframework.beans.BeanUtils;

import java.util.List;

public class MyUtils {

    private MyUtils() {
    }

    public static List<Object> copyList(List<Object> sources, List<Object> targets){
        for (Object source : sources) {
            Object target = new Object();
            BeanUtils.copyProperties(source,target);
            targets.add(target);
        }
        return targets;
    }

}
